package com.lx.work;

/**
 * @author c先生
 * @date 2022年03月27日 下午 12:41:51
 * @describe  字符串 are you ok   era uoy ko
 *            字符串的反转
 */

public class Work2 {
    public static void main(String[] args) {
        String str = "are you ok";
        String[] strs = str.split(" ");
        for (int i = 0; i < strs.length; i++) {
            StringBuffer sb = new StringBuffer(strs[i]);
            System.out.print(sb.reverse()+" ");
        }
    }
}
